import { createStore } from "redux";
const initState = {
    city:"武汉"
}
const reducer = (state=initState,action)=>{
    console.log(action);
    switch(action.type){
        case "changeCity":
            return {city:action.val}
            default:
                return state
    }
}
let store = createStore(reducer)
export default store;